package com.tql.hualala.request;


import org.apache.commons.lang3.StringUtils;

public class BaseRequest<T> {

    private String path;

    protected Long groupID = null;

    protected Long shopID = null;

    protected T requestBody = null;

    public boolean valid() {
        return StringUtils.isNotEmpty(path) && null != groupID;
    }

    public BaseRequest(String path) {
        this.path = path;
    }

    public BaseRequest() {
       // throw new RuntimeException("需要给参数[path]赋值");
    }


    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Long getGroupID() {
        return groupID;
    }

    public void setGroupID(Long groupID) {
        this.groupID = groupID;
    }

    public Long getShopID() {
        return shopID;
    }

    public void setShopID(Long shopID) {
        this.shopID = shopID;
    }

    public T getRequestBody() {
        return requestBody;
    }

    public void setRequestBody(T requestBody) {
        this.requestBody = requestBody;
    }
}
